<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/10/30 0030
 * Time: 下午 4:29
 */

namespace app\controller;

use think\facade\Route;
class City
{
    function index(){

        return "city/inde";
    }
    function miss(){
        return " city 哦没有东西了";
    }
    function details($id=9,$type=0){

        return "city/details/id=".$id."type=".$type;
    }
    public static function details2($id=9){

        return "city/details2/id=".$id;
    }
    function show($id,$uid){

        return "city/show/id=".$id.",uid=".$uid;
    }

    function url(){

        //return url("City/details",['id'=>100]);
        Route::rule("cd/id:","City/details")->name("cd");
        return url("cd",["id"=>100]);
    }
}